package mest.dao.hws;

import mest.entity.plan_productjob_purchase;
import mest.entity.plan_productjob_purchase_record;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface plan_productjob_purchaseMapper {
    int deleteByPrimaryKey(@Param("theirDb") String theirDb,@Param("id") Integer id);

    int insert(@Param("theirDb") String theirDb,@Param("plan_productjob_purchaselist") List<plan_productjob_purchase> record);

    int insertSelective(@Param("theirDb") String theirDb,@Param("record") plan_productjob_purchase record);

    plan_productjob_purchase selectByPrimaryKey(@Param("theirDb") String theirDb,@Param("id")Integer id);

    List<Map> selectPrimary(@Param("theirDb") String theirDb,@Param("limit") Integer limit, @Param("page") Integer page, @Param("ppId") Integer ppId, @Param("status") Integer status);

    int selectcount(@Param("theirDb") String theirDb,@Param("ppId")Integer ppId,@Param("status")Integer status);

    int updateByPrimaryKeySelective(@Param("theirDb") String theirDb,@Param("record") plan_productjob_purchase record);

    int updateByPrimaryKey(@Param("theirDb") String theirDb,@Param("record") plan_productjob_purchase record);

    int updateByone(@Param("theirDb") String theirDb,@Param("list") List<plan_productjob_purchase_record> record);
}